<?php /* Smarty version 2.6.18, created on 2010-03-10 01:39:41
         compiled from editpayment.tpl */ ?>
<form name="mainForm" method="POST" id="mainForm">
<input type="hidden" name="user[org_id]" value="<?php echo $this->_tpl_vars['paymentInformation'][0]['org_id']; ?>
">
<input type="hidden" name="user[payment_id]" value="<?php echo $this->_tpl_vars['paymentInformation'][0]['id']; ?>
">
<input type="hidden" name="user[staff_view]" value="<?php echo $this->_tpl_vars['staffView']; ?>
">
<input type="hidden" name="user[staff_id]" value="<?php echo $this->_tpl_vars['staffId']; ?>
">
<table class="popup" border="0" cellspacing=0 cellpadding=0>
	<tr><td><div class="pop">
		<div class="top_pop"><img src="/app/default/www/images/top_left_pop.jpg" /></div> 
		<div id="drag_bar"><h2 class="pop_h2">Edit Payment Information</h2></div>
		<div class="content">
			<table border="0" width="100%">
				<tr>
					<td>Description:</td>
					<td>&nbsp;&nbsp;<input type="text" name="user[title]" value="<?php echo $this->_tpl_vars['paymentInformation'][0]['title']; ?>
" style="width:250px"></td>
				</tr>
				<tr>
					<td style="vertical-align: top;">Content:</td>
					<td align="left"><textarea name="user[content]" rows="10" cols="10"><?php echo $this->_tpl_vars['paymentInformation'][0]['content']; ?>
</textarea></td>
				</tr>
				<tr>
					<td>Default:</td>
					<td>&nbsp;&nbsp;<input type="checkbox" name="user[default_payment]" <?php if ($this->_tpl_vars['paymentInformation'][0]['default_payment'] == 'Yes'): ?> CHECKED <?php endif; ?> /></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="button" value="Save" onclick="savePaymentInformation();">&nbsp;
						<input type="button" value="Close" onclick="popup('editPaymentInformation');">
					</td>
				</tr>
			</table>
		</div>
		<div class="btm_pop"><img src="/app/default/www/images/btm_left_pop.jpg"  alt="" />
	</div></td></tr>
</table>
</form>
<script language="javascript">
<?php echo '
	function savePaymentInformation() {
		popup(\'editPaymentInformation\');
		doajaxAction("/account/savePaymentInformation/",1,\'main_content\',document.getElementById(\'mainForm\'));
	}

'; ?>

</script>
	